package day04;

import java.util.Scanner;

public class txt6 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        String str="";
        while (true){
            String inputstr=s.nextLine();
            if(inputstr.equals("bye"))break;

            str=str+inputstr;
            str = str + ",";
            System.out.println(str);
        }
    }
}
